package com.stylefeng.guns.modular.platform.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.stylefeng.guns.modular.platform.dao.UserTaskFlowsMapper;
import com.stylefeng.guns.modular.platform.model.UserTaskFlows;
import com.stylefeng.guns.modular.platform.service.IUserTaskFlowsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author stylefeng123
 * @since 2018-07-27
 */
@Service
public class UserTaskFlowsServiceImpl extends ServiceImpl<UserTaskFlowsMapper, UserTaskFlows> implements IUserTaskFlowsService {

    @Resource
    private UserTaskFlowsMapper userTaskFlowsMapper;

    @Override
    public List<UserTaskFlows> selectByParams(UserTaskFlows userTaskFlows) {
        return userTaskFlowsMapper.selectByParams(userTaskFlows);
    }

    @Override
    public void initTaskCompleteNums() {
        userTaskFlowsMapper.initTaskCompleteNums();
    }

    @Override
    public void updateUserTaskFlowdComplete(UserTaskFlows userTaskFlows) {
        userTaskFlowsMapper.updateUserTaskFlowdComplete(userTaskFlows);
    }
}
